<?php

class Controller_Adminmall_Editor extends Controller_Adminmall_Abstract {

    public function uploadAction() {
		global $_F;

//		$upload_file = FUploader::saveFile('imgFile', 'editor');
		$upload_file = Service_Attach::getInstance()->uploadOSS('imgFile','editor/pic','jpg');
		$retData = array('error' => 0, 'url' => trim($_F['s_url_oss'], '/') . '/uploads/' . $upload_file);

		return FResponse::output($retData);
	}


}
